<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>WB32L003 Standard Peripherals Firmware Library: wb32l003_i2c.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">WB32L003 Standard Peripherals Firmware Library
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_6d2d5b60bd20db849a9486835a2715aa.html">Libraries</a></li><li class="navelem"><a class="el" href="dir_5ec8cccc32fa528457f3b4ed28e1a2cf.html">WB32L003_StdPeriph_Driver</a></li><li class="navelem"><a class="el" href="dir_5de9c861c65ef79c1ee42b85520795c1.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">wb32l003_i2c.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>This file provides all the I2C firmware functions.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;<a class="el" href="wb32l003__i2c_8h_source.html">wb32l003_i2c.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="wb32l003__rcc_8h_source.html">wb32l003_rcc.h</a>&quot;</code><br />
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga475ebf7c2c0f64e9631fb1ed82d6bb32"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c___private___functions.html#ga475ebf7c2c0f64e9631fb1ed82d6bb32">I2C_DeInit</a> (void)</td></tr>
<tr class="memdesc:ga475ebf7c2c0f64e9631fb1ed82d6bb32"><td class="mdescLeft">&#160;</td><td class="mdescRight">Deinitializes the I2C peripheral registers to their default reset values.  <a href="group___i2_c___private___functions.html#ga475ebf7c2c0f64e9631fb1ed82d6bb32">More...</a><br /></td></tr>
<tr class="separator:ga475ebf7c2c0f64e9631fb1ed82d6bb32"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1b5cee4c873630ae2d38c5301ce6dfef"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c___private___functions.html#ga1b5cee4c873630ae2d38c5301ce6dfef">I2C_Init</a> (<a class="el" href="struct_i2_c___init_type_def.html">I2C_InitTypeDef</a> *I2C_InitStruct)</td></tr>
<tr class="memdesc:ga1b5cee4c873630ae2d38c5301ce6dfef"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the I2C peripheral according to the specified parameters in the I2C_InitStruct.  <a href="group___i2_c___private___functions.html#ga1b5cee4c873630ae2d38c5301ce6dfef">More...</a><br /></td></tr>
<tr class="separator:ga1b5cee4c873630ae2d38c5301ce6dfef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9cc0585acf034965b8e1bd7e6564a9d0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c___private___functions.html#ga9cc0585acf034965b8e1bd7e6564a9d0">I2C_SlaveAddressConfig</a> (uint32_t SlaveAddress)</td></tr>
<tr class="memdesc:ga9cc0585acf034965b8e1bd7e6564a9d0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures the I2C slave address.  <a href="group___i2_c___private___functions.html#ga9cc0585acf034965b8e1bd7e6564a9d0">More...</a><br /></td></tr>
<tr class="separator:ga9cc0585acf034965b8e1bd7e6564a9d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3764b44c393d3142ff528b3777367181"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c___private___functions.html#ga3764b44c393d3142ff528b3777367181">I2C_HighSpeedModeCmd</a> (FunctionalState NewState)</td></tr>
<tr class="memdesc:ga3764b44c393d3142ff528b3777367181"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures I2C high speed mode.  <a href="group___i2_c___private___functions.html#ga3764b44c393d3142ff528b3777367181">More...</a><br /></td></tr>
<tr class="separator:ga3764b44c393d3142ff528b3777367181"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga273ed4a9322317b6167a351c5d9c22a6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c___private___functions.html#ga273ed4a9322317b6167a351c5d9c22a6">I2C_Start</a> (FunctionalState NewState)</td></tr>
<tr class="memdesc:ga273ed4a9322317b6167a351c5d9c22a6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets or clears I2C peripheral start status.  <a href="group___i2_c___private___functions.html#ga273ed4a9322317b6167a351c5d9c22a6">More...</a><br /></td></tr>
<tr class="separator:ga273ed4a9322317b6167a351c5d9c22a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga967813684e605713eadf012bacb3d6b5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c___private___functions.html#ga967813684e605713eadf012bacb3d6b5">I2C_Stop</a> (FunctionalState NewState)</td></tr>
<tr class="memdesc:ga967813684e605713eadf012bacb3d6b5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets or clears I2C peripheral stop status.  <a href="group___i2_c___private___functions.html#ga967813684e605713eadf012bacb3d6b5">More...</a><br /></td></tr>
<tr class="separator:ga967813684e605713eadf012bacb3d6b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga51127006ab0941f6cc9b1d4fe77b06c8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c___private___functions.html#ga51127006ab0941f6cc9b1d4fe77b06c8">I2C_ACK</a> (FunctionalState NewState)</td></tr>
<tr class="memdesc:ga51127006ab0941f6cc9b1d4fe77b06c8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets or clears I2C peripheral ACK status.  <a href="group___i2_c___private___functions.html#ga51127006ab0941f6cc9b1d4fe77b06c8">More...</a><br /></td></tr>
<tr class="separator:ga51127006ab0941f6cc9b1d4fe77b06c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae696416c6624783e6f3240742a1a474f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c___private___functions.html#gae696416c6624783e6f3240742a1a474f">I2C_Cmd</a> (FunctionalState NewState)</td></tr>
<tr class="memdesc:gae696416c6624783e6f3240742a1a474f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables or disables I2C peripheral.  <a href="group___i2_c___private___functions.html#gae696416c6624783e6f3240742a1a474f">More...</a><br /></td></tr>
<tr class="separator:gae696416c6624783e6f3240742a1a474f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac8fd48b27115ed75fad89fc467c0fc4c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c___private___functions.html#gac8fd48b27115ed75fad89fc467c0fc4c">I2C_AckGeneralCallCmd</a> (FunctionalState NewState)</td></tr>
<tr class="memdesc:gac8fd48b27115ed75fad89fc467c0fc4c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables or disables the general ack.  <a href="group___i2_c___private___functions.html#gac8fd48b27115ed75fad89fc467c0fc4c">More...</a><br /></td></tr>
<tr class="separator:gac8fd48b27115ed75fad89fc467c0fc4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga13a1acbae3361144dcd5c222987f3569"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c___private___functions.html#ga13a1acbae3361144dcd5c222987f3569">I2C_ReceiveByte</a> (uint8_t *pData)</td></tr>
<tr class="memdesc:ga13a1acbae3361144dcd5c222987f3569"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads data from data register.  <a href="group___i2_c___private___functions.html#ga13a1acbae3361144dcd5c222987f3569">More...</a><br /></td></tr>
<tr class="separator:ga13a1acbae3361144dcd5c222987f3569"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaae912ddb3e54a26e4ec17e35e8ee1858"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c___private___functions.html#gaae912ddb3e54a26e4ec17e35e8ee1858">I2C_WriteByte</a> (uint8_t I2C_DataCmd)</td></tr>
<tr class="memdesc:gaae912ddb3e54a26e4ec17e35e8ee1858"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write one byte data.  <a href="group___i2_c___private___functions.html#gaae912ddb3e54a26e4ec17e35e8ee1858">More...</a><br /></td></tr>
<tr class="separator:gaae912ddb3e54a26e4ec17e35e8ee1858"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9bfdf853316172ce00fd5745847c83c9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c___private___functions.html#ga9bfdf853316172ce00fd5745847c83c9">I2C_WriteAddress</a> (uint8_t Address, uint8_t I2C_Direction)</td></tr>
<tr class="memdesc:ga9bfdf853316172ce00fd5745847c83c9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write the slave address byte by the direction.  <a href="group___i2_c___private___functions.html#ga9bfdf853316172ce00fd5745847c83c9">More...</a><br /></td></tr>
<tr class="separator:ga9bfdf853316172ce00fd5745847c83c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga65c074c0c585882e5f469f49c98f1bac"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___i2_c.html#ga9bec282875cd65e00172e875ef785bec">I2CStatus</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c___private___functions.html#ga65c074c0c585882e5f469f49c98f1bac">I2C_CheckFlag</a> (uint32_t *I2C_Flag)</td></tr>
<tr class="memdesc:ga65c074c0c585882e5f469f49c98f1bac"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the last I2C module status flag.  <a href="group___i2_c___private___functions.html#ga65c074c0c585882e5f469f49c98f1bac">More...</a><br /></td></tr>
<tr class="separator:ga65c074c0c585882e5f469f49c98f1bac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga969097bd9d6c5dc41289093f4af6526c"><td class="memItemLeft" align="right" valign="top">ITStatus&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c___private___functions.html#ga969097bd9d6c5dc41289093f4af6526c">I2C_GetITStatus</a> (void)</td></tr>
<tr class="memdesc:ga969097bd9d6c5dc41289093f4af6526c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks whether I2C interrupt has occurred or not.  <a href="group___i2_c___private___functions.html#ga969097bd9d6c5dc41289093f4af6526c">More...</a><br /></td></tr>
<tr class="separator:ga969097bd9d6c5dc41289093f4af6526c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga92a27b9faaa5d38b47971b39e43a9411"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c___private___functions.html#ga92a27b9faaa5d38b47971b39e43a9411">I2C_ClearITPendingBit</a> (void)</td></tr>
<tr class="memdesc:ga92a27b9faaa5d38b47971b39e43a9411"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears I2C interrupt pending bit.  <a href="group___i2_c___private___functions.html#ga92a27b9faaa5d38b47971b39e43a9411">More...</a><br /></td></tr>
<tr class="separator:ga92a27b9faaa5d38b47971b39e43a9411"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>This file provides all the I2C firmware functions. </p>
<dl class="section author"><dt>Author</dt><dd>Westberry Application Team </dd></dl>
<dl class="section version"><dt>Version</dt><dd>V0.0.3 </dd></dl>
<dl class="section date"><dt>Date</dt><dd>12-April-2023 </dd></dl>
</div></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by Westberry Technology (ChangZhou) Corp., Ltd. All rights reserved.
</small></address>
</body>
</html>
